<template>
	<view class="navBar">
		<!-- 三级标题 -->
		<view class="left" @click="goBack">
			<image class="img" src="/static/image/universal/arrows.png" mode=""></image>
		</view>
		<view class="title-box">
			<view class="main-title">{{ dataObj.bizProjectName || "" }}</view>
			<view class="sub-title" >{{ dataObj.sectionName || "" }}、{{ dataObj.siteName || "" }}</view>
			<view class="title-time">{{ dataObj.startTime2 }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			goBackUrl: String,
			dataObj: {
				default: ()=>{},
				type: Object,
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			goBack() {
				this.$emit("goBack", this.goBackUrl)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.navBar {
		width: 100%;
		height: 200rpx;
		padding: 14rpx 20rpx;
		padding-top: 45rpx;
		box-sizing: border-box;
		background-color: #fff;
		display: flex;
		align-items: center;
			.left {
				width: 100rpx;
				.img {
					width: 60rpx;
					height: 60rpx;
				}
			}
			.title-box{
				flex: 1;
				font-size: 36rpx;
				font-family: Noto Sans Thai UI-Medium, Noto Sans Thai UI;
				font-weight: 500;
				color: #1B1A57;
				.main-title{
					width: 610rpx;
					overflow: hidden; //超出的文本隐藏
					text-overflow: ellipsis; //溢出用省略号显示
					white-space: nowrap; //溢出则不换行
				}
				.sub-title{
					color: #4F5E7B;
					font-size: 24rpx;
					width: 610rpx;
					overflow: hidden; //超出的文本隐藏
					text-overflow: ellipsis; //溢出用省略号显示
					white-space: nowrap; //溢出则不换行
				}
				.title-time{
					color: #4F5E7B;
					font-size: 24rpx;
					width: 610rpx;
					overflow: hidden; //超出的文本隐藏
					text-overflow: ellipsis; //溢出用省略号显示
					white-space: nowrap; //溢出则不换行
				}
			}
	}
</style>